{% load static %}
<!DOCTYPE html>
<html lang="zh-hans">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %} - MySQL介绍演示系统</title>
    
    <link rel="icon" type="image" href="{% static 'icon.png' %}">
    <link rel="stylesheet" href="{% static 'bootstrap.css' %}" />
    <script type="text/javascript" src="{% static 'jquery-1.12.4.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'bootstrap.js' %}"></script>

    <style>
        html,
        body {
            height: 100%;
            background-color: #1b6d85;
        }
        header {
        }
        nav {
        }
        nav a {
            display: block;
            color: white;
            font-size: 20px;
            line-height: 70px;
        }
        nav .selected {
            background-color: white;
            color: black;
        }
        main {
            width: 100%;
            height: 100%;
        }
        main h2 {
            font-size: 36px;
        }
        main h3 {
            font-size: 28px;
            line-height: 70px;
        }
        main h4 {
            font-size: 24px;
        }
        footer {
            margin-top: auto;
        }
        footer p {
            color: white;
        }
        th {
            text-align: center;
        }
        .main_container {
            display: flex;
            width: 100%;
            height: 100%;
        }
        .sidebar {
            background-color: #1976d2;
            display: flex;
            width: 10%;
            flex-direction: column;
            padding: 0;
            box-sizing: border-box;
        }
        .content {
            background-image: url("../static/{% block bg %}{% endblock %}");
            background-size: cover;
            display: flex;
            width: 90%;
            padding: 0 200px 0 200px;
        }
        .main_title {
            color: white;
        }
        .main_title .title_1 {
            font-size: 30px;
        }
        .main_title .title_2 {
            font-size: 22px;
        }
        .index_link a {
            background-color: #eeeeee;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            width: 200px;
            height: 80px;
            border-radius: 5px;
            margin-right: 10px;
            font-size: 18px;
        }
        .introduction p {
            font-size: 20px;
            text-indent: 2em;
        }
        .demo_para {
            font-size: 20px;
        }
        #input label {
            font-size: 16px;
            font-weight: bolder;
        }
        #table th {
            font-size: 20px;
        }
        #table td {
            font-size: 20px;
        }
        .error {
            color: red;
        }
        .login_container {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .login_div {
            background-color: rgba(255, 255, 255, 0.85);
            width: 300px;
            height: 300px;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .login_div label {
            font-size: 16px;
            font-weight: normal;
        }
        .login_div form {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .index_container {
            width: 100%;
            height: 100%;
            background-color: white;
        }
    </style>
</head>
<body>
    <div class="main_container">
        <div class="sidebar">
            <header class="text-center">
                <h1 class="main_title"><span class="title_1">MySQL</span><br/><span class="title_2">介绍演示系统</span></h1>
                <hr/>
            </header>

            <nav class="text-center">
                {% block nav %}{% endblock %}
            </nav>

            <footer class="text-center">
                <hr/>
                <p>MySQL介绍演示系统</p>
                <p>作者：张家赫</p>
            </footer>
        </div>
        <div class="content">
            <main class="">
                {% block content %}{% endblock %}
            </main>
        </div>
    </div>
</body>
</html>